﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace InvestmentIntelligence.DbModel.Models
{
    [Table("Idea", Schema = "Analytics")]
    public class AnalyticsIdea
    {
        [Key]
        public Guid Id { get; set; }
        public bool Closed { get; set; }
        public int FundBookEntityId { get; set; }
        public short? Type { get; set; }
        public DateTime StartDate { set; get; }
        public DateTime? EndDate { set; get; }

        [MaxLength(150)]
        public string Name { set; get; }

        [ForeignKey("FundBookEntityId")]
        public virtual FundBookEntity FundBookEntity { get; set; }
        public virtual ICollection<Investment> Investments { get; set; }
        public virtual ICollection<Security> Securities { get; set; }
    }
}
